package ua.at.javac.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table (name="site")
public class Site implements Serializable{

	private static final long serialVersionUID = 1L;

	Site() {
	}

	@Id
	@Column(name = "site_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	
	@ManyToOne
	@JoinColumn(name="city_id")
	private int city;
	
	@Column(name="http")
	private String http;
	
	@Column(name="site_name")
	private String site;
}
